from pydantic_settings import BaseSettings, SettingsConfigDict
from typing import List, Optional

class Settings(BaseSettings):
    model_config = SettingsConfigDict(
        env_file=".env",
        env_file_encoding='utf-8',
        extra="ignore"
    )

    APP_NAME: str = "inception-2api"
    APP_VERSION: str = "2.0.0"
    DESCRIPTION: str = "一个将 chat.inceptionlabs.ai 转换为兼容 OpenAI 格式 API 的高性能代理 (手动凭证版)。"

    API_MASTER_KEY: Optional[str] = None
    
    # 手动配置的凭证
    INCEPTION_COOKIE: Optional[str] = None

    API_REQUEST_TIMEOUT: int = 180
    NGINX_PORT: int = 8087

    DEFAULT_MODEL: str = "mercury"
    KNOWN_MODELS: List[str] = ["mercury"]

settings = Settings()
